import os
"""
这里是项目路径的处理
"""

# 项目根路径
BASEDIR = os.path.dirname(os.path.dirname(__file__))

# 日志路径
LOGDIR = os.path.join(BASEDIR, "log").replace("\\", "/")

# UI用例路径配置====================================================================
UI_CASEDIR = os.path.join(BASEDIR, "ui_case").replace("\\", "/")

# UI-yaml 的用例路径
CASE_FOR_YAML_DIR = os.path.join(UI_CASEDIR, "case_for_yaml").replace("\\", "/")

# json 的用例路径
CASE_FOR_JSON_DIR = os.path.join(UI_CASEDIR, "case_for_json").replace("\\", "/")

# csv 的用例路径
CASE_FOR_CSV_DIR = os.path.join(UI_CASEDIR, "case_for_csv").replace("\\", "/")

# xlsx 的用例路径
CASE_FOR_XLSX_DIR = os.path.join(UI_CASEDIR, "case_for_xlsx").replace("\\", "/")
# UI用例路径配置====================================================================

# API用例路径配置====================================================================
API_CASEDIR = os.path.join(BASEDIR, "api-case").replace("\\", "/")
# UI-yaml 的用例路径
API_CASE_FOR_YAML_DIR = os.path.join(API_CASEDIR, "case_for_yaml").replace("\\", "/")

# json 的用例路径
API_CASE_FOR_JSON_DIR = os.path.join(API_CASEDIR, "case_for_json").replace("\\", "/")

# csv 的用例路径
API_CASE_FOR_CSV_DIR = os.path.join(API_CASEDIR, "case_for_csv").replace("\\", "/")

# xlsx 的用例路径
API_CASE_FOR_XLSX_DIR = os.path.join(API_CASEDIR, "case_for_xlsx").replace("\\", "/")
# API用例路径配置====================================================================


# 报告路径
REPORTDIR = os.path.join(BASEDIR, "report").replace("\\", "/")

# 配置文件路径
SYSCONFIGDIR = os.path.join(BASEDIR, "config").replace("\\", "/")

# 数据配置文件路径
DATADIR = os.path.join(BASEDIR, "data").replace("\\", "/")

# 浏览器驱动路径
BROWDRIVERDIR = os.path.join(BASEDIR, "browdriver").replace("\\", "/")


if __name__ == "__main__":
    # print(CASE_FOR_CSV_DIR)
    # print(CASE_FOR_YAML_DIR)
    # print(CASE_FOR_JSON_DIR)
    # print(ELEMENTGDIR)
    print(UI_CASEDIR)

